package at.fhooe.mc.master.clc.client.presenter;

import at.fhooe.mc.master.clc.client.MetricsVisualizationEventBus;
import at.fhooe.mc.master.clc.client.view.RootTemplateView;

import com.google.gwt.user.client.ui.IsWidget;
import com.mvp4g.client.annotation.Presenter;
import com.mvp4g.client.presenter.BasePresenter;

@Presenter(view = RootTemplateView.class)
public class RootTemplatePresenter extends BasePresenter<RootTemplatePresenter.IRootTemplateView, MetricsVisualizationEventBus>
{
	public interface IRootTemplateView
	{
		void addTab(IsWidget widget, String title);
	}
	
	public void onAddRootTab(IsWidget widget, String title)
	{
		view.addTab(widget, title);
	}
	
}
